package com.dang.alex.service.imp;

import java.util.List;

import com.dang.alex.dao.imp.DAOFactory;
import com.dang.alex.model.ReceiveAddress;
import com.dang.alex.service.serviceInterface.ReceiveAddressServiceinterface;

public class ReceiveAddressServiceimp implements ReceiveAddressServiceinterface {

	@Override
	public ReceiveAddress findById(int id) throws Exception {
		return DAOFactory.getReceiveAddressDAOImp().findById(id);
	}

	public void sava(ReceiveAddress addr) {
		DAOFactory.getReceiveAddressDAOImp().sava(addr);
	}

	public List<ReceiveAddress> findByUserId(int userId) {
		return DAOFactory.getReceiveAddressDAOImp().findByUserId(userId);
	}

	

}
